<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>test02</title>
  </head>
  <body>
    <p>这是test02页面</p>
    <button id="back">后退</button>

    <script>
      var back = document.getElementById("back");
      back.onclick = function () {
        history.back();
      };
    </script>
  </body>
</html>
